/*
 * @description: 
 * @Author: Islands
 * @Date: 2023-12-06 12:30:09
 * @LastEditTime: 2024-03-28 02:39:47
 */
import { ISearchItem, ITableItem, IFromItem } from '@/types/index.d'
export const IconItems = {
    search: [
        { type: 'input', label: 'setting.icon.name', prop: 'name' },
        {
            type: 'select', label: 'setting.icon.type', prop: 'type', select: {
                multiple: true, options: []
            }
        }
    ] as Array<ISearchItem>,
    table: [
        { type: 'selection', prop: 'id' },
        { type: 'column', label: 'setting.icon.name', prop: 'name' },
        { type: 'icon', label: 'setting.icon.code', prop: 'code' },
        { type: 'column', label: 'setting.icon.type', prop: 'type' },
        {
            type: 'enabled', label: 'table.status', prop: 'enabled', options: [
                { label: '正常', value: 1, type: '' }
            ]
        },
        { type: 'date', label: 'table.updatedTime', prop: 'updatedTime' },
    ] as Array<ITableItem>,
    form: [
        { type: 'input', span: 12, label: 'setting.icon.name', prop: 'name' },
        {
            type: 'select', span: 12, label: 'setting.icon.type', prop: 'type', select: {
                multiple: true, options: [{ label: '阿里', value: 1 }, { label: '字节', value: 2 }]
            }
        },
        { type: 'composite', span: 12, label: 'setting.icon.code', prop: 'code', select: { prop: 'source', options: [{ label: '阿里', value: 1 }, { label: '字节', value: 2 }] } },
        {
            type: 'custom', span: 24, label: 'setting.icon.code', prop: 'code', slot: 'icon'

        },
    ] as Array<IFromItem>
}



export const dictItems = {
    search: [
        { type: 'input', label: 'setting.dict.name', prop: 'name' },
        {
            type: 'select', label: 'table.status', prop: 'enabled', select: {
                options: []
            }
        }
    ] as Array<ISearchItem>,
    form: [
        { type: 'input', span: 24, label: 'setting.dict.name', prop: 'name' },
        { type: 'textarea', span: 24, label: 'setting.dict.name', prop: 'name',textarea:{rows:5} },
    ] as Array<IFromItem>,
    table: [
        { type: 'selection', prop: 'id' },
        { type: 'column', label: 'setting.dict.name', prop: 'name' },
        { type: 'column', label: 'setting.dict.description', prop: 'description' },
        {
            type: 'enabled', label: 'table.status', prop: 'enabled', options: [
                { label: '正常', value: 1, type: '' }
            ]
        },
        { type: 'date', label: 'table.updatedTime', prop: 'updatedTime' },
    ] as Array<ITableItem>,
   
}

